package com.yqw.spring1219.dp.b_filter;

public class FilterMain {
	
	public static void main(String[] args) {
		String msg = "大家好:) <Script> 敏感，被就业， 网咯授课，因为看不见大家伙儿";
		Request request = new Request();
		request.setRequestStr(msg);
		Response response = new Response();
		response.setResponse("response");
		FilterChain fc = new FilterChain();
		fc.addFilter(new HtmlFilter()).addFilter(new SesitiveFilter());
		fc.doFilter(request, response, fc);
		System.out.println(request.getRequestStr());
		System.out.println(response.getResponse());
	}

}
